package com.cjx.spring_cloud.service;

import com.cjx.springcloud.entities.CommonResult;
import com.cjx.springcloud.entities.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author cjx
 * @date 2021/5/13 0013 - 22:25
 */
@Component
@FeignClient(value = "CLOUD-ORDER-SERVICE")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    public CommonResult<Payment> getPaymentByid(@Param("id") Long id);
}
